package com.yztc.orangeentertainment.ui.main.subscribefragment.staritem.starpicturefragment;

import android.content.Context;

import com.yztc.orangeentertainment.adapter.StarPictureAdapter;
import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.staritembean.PictureListBean;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2016/10/8.
 */
public class PictureContract {
    public interface View extends IView {
        //发送到adapter
        public void sendToAdapter(StarPictureAdapter adapter, List<PictureListBean> list);
        public void onLoadStarPictureSuccess(List<PictureListBean> list);
        //加载数据失败
        public void onLoadStarPictureFail(String msg);
    }
    public interface Modle extends IModle {
        //得到list
        public void getStarPictureAll(String type, Map<String, String> params, Context context,OnLoadPictureListener loadPictureListener);
        //获得数据库
//        public void getStarFromDb(Subscriber<List<PictureListBean>> subscriber);
    }
    public interface Presenter extends IPresenter {
        //从网络获取数据
        public void getStarPictureFromNet(Map<String, String> params, Context context);
//        public void  getStarFromDb();
    }
}
